package com.lostandfound.service.admin.impl;


import com.lostandfound.mapper.admin.LoginMapper;
import com.lostandfound.pojo.User;
import com.lostandfound.pojo.dto.UserDto;
import com.lostandfound.service.admin.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    /**
     * 登录
     * @param user
     * @return
     */
    @Override
    public User login(User user) {
        return loginMapper.login(user);
    }

    @Override
    public void update(UserDto userDto) {
        loginMapper.updata(userDto);
    }
}
